package com.xm.pojo;

import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Goods {
    public Integer id;
    public Integer sid;
    public String img;
    @ColumnWidth(20)
    public String goodsName;
    public Double goodsMoney;
    public int number;
    public String goodsIll;
    @ColumnWidth(30)
    @DateTimeFormat(pattern = "yyyy-MM-dd")//设置日期类型格式模板
    public Date goodsTime;
}
